package com.otheima.localdatetimeformatter;

import java.time.LocalDateTime;

public class Test01 {//LocalDateTime转为LocalDate和LocalTime
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.toLocalDate());
        System.out.println(now.toLocalTime());
    }
}
